﻿<%@ Page Title="" Language="C#" MasterPageFile="~/StatisticPage/StatisticMaster.Master" AutoEventWireup="true" CodeBehind="BXH.aspx.cs" Inherits="FPTPages.StatisticPage.BXH" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <h1 class="title">Bảng xếp hạng</h1>
    <p>Last updated by <a href="#">VuPTT</a> on 25/07/2012</p>
<p>
    <div class=entry>
    <asp:GridView ID="gdvBXH" runat="server" AutoGenerateColumns="False" 
        BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" CellSpacing="2" DataSourceID="SqlDataSource1" 
        Width="517px" AllowSorting="True">
        <Columns>
            <asp:BoundField DataField="TeamName" HeaderText="TeamName" 
                SortExpression="TeamName" />
            <asp:BoundField DataField="GoalsFor" HeaderText="GoalsFor" 
                SortExpression="GoalsFor" />
            <asp:BoundField DataField="GoalsAgainst" HeaderText="GoalsAgainst" 
                SortExpression="GoalsAgainst" />
            <asp:BoundField DataField="GoalsDif" HeaderText="GoalsDif" 
                SortExpression="GoalsDif" ReadOnly="True" />
            <asp:BoundField DataField="Grade" HeaderText="Grade" SortExpression="Grade" />
        </Columns>
        <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
        <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
        <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
        <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#FFF1D4" />
        <SortedAscendingHeaderStyle BackColor="#B95C30" />
        <SortedDescendingCellStyle BackColor="#F1E5CE" />
        <SortedDescendingHeaderStyle BackColor="#93451F" />
    </asp:GridView>
    </div>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ProjectDatabaseConnectionString2 %>" 
        
    
        SelectCommand="SELECT [TeamName], [GoalsFor], [GoalsAgainst], [GoalsDif], [Grade] FROM [TeamRanking] ORDER BY [Grade] DESC, [GoalsDif] DESC">
    </asp:SqlDataSource>
</p>

</asp:Content>
